package com.qfedu.kit;
import java.util.UUID;
import org.springframework.util.DigestUtils;

public class StringUtil {


    //判断是否为空
    public static boolean isEnpty(String str) {
        return str == null || str.equals("");
    }

    //加密
    public static String MD5Encode(String origin) {

        return DigestUtils.md5DigestAsHex(origin.getBytes());
    }

    //UUID
    public static String getUUID() {

        return UUID.randomUUID().toString().replace("-", "");
    }


}
